{extend name="base" /}
{block name="body"}
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">前台导航新增</li>
    </ul>
</div>
<div class="layui-tab-brief">

    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form form-container" data-url="{:url('admin/nav/save')}"
                  localtion-url="{:url('nav/index')}">


                <div class="layui-form-item">
                    <label class="layui-form-label">导航名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" required lay-verify="required" autocomplete="off"  placeholder="请输入导航名称"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">别名</label>
                    <div class="layui-input-inline">
                        <input type="text" name="alias"  placeholder="(选填)" autocomplete="off"  class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">链接</label>
                    <div>
                        <div class="layui-input-block">
                            <input type="text" name="link" value="" autocomplete="off"  class="layui-input"></div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">导航位置</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="tid" value="1" title="顶部" checked="checked">
                        <input type="radio" name="tid" value="2" title="底部">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">打开方式</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="target" value="_self" title="默认" checked="checked">
                        <input type="radio" name="target" value="_blank" title="新窗口">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-inline">
                        <input type="number" name="sort" value="0" alt="数字越大越靠前" required lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="btable-paged">
                    <div class="formbtngroup">
                        <span  style="line-height: 30px;">本页面提交后需清除缓存</span>
                        <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="formadd">添加</button>
                        <button onclick="history.go(-1);return false;" class="layui-btn layui-btn-primary layui-btn-sm">
                            返回
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="js"}
<script type="text/javascript" src="__ADMIN__/js/formadd.js"></script>
{/block}